package xin.codedream.codelog.model.entity;

import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 文章标签
 *
 * @author NGLSL
 * @date 2018/8/10
 */
@Data
public class ArticleTag {
    /**
     * 文章标签ID
     */
    private Long articleTagId;
    /**
     * 文章
     */
    private Article article;
    /**
     * 标签
     */
    private Tag tag;
    /**
     * 多个标签
     */
    private List<Tag> tags;
    /**
     * 创建时间
     */
    private Date createTime;

    public ArticleTag() {
    }

    public ArticleTag(Article article, Tag tag) {
        this.article = article;
        this.tag = tag;
    }

    public ArticleTag(Article article, List<Tag> tags) {
        this.article = article;
        this.tags = tags;
    }
}
